package cn.le.dao;

import cn.le.po.PropertyPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

@Mapper
public interface PropertyDAO {

    void insert(PropertyPO po);

    PropertyPO getByName(@Param("productId")Long productId,@Param("name") String name);

    PropertyPO getByIdentifier(@Param("productId")Long productId,@Param("identifier") String identifier);

    List<PropertyPO> findByProductId(Long productId);

    List<PropertyPO> findByProductIds(@Param("ids") Set<Long> productIds);


}
